<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>做题完成</title>
    <base th:href="@{/}"/>
    <!--    <link rel="stylesheet" href="static/css/minireset.css" />-->
    <!--    <link rel="stylesheet" href="static/css/common.css" />-->
    <!--    <link rel="stylesheet" href="static/css/cart.css" />-->
    <!--    <link rel="stylesheet" href="static/css/bookManger.css" />-->
    <link rel="shortcut icon" href="../static/favicon.ico"/>
    <link href="../static/css/bootstrap.min.css?v=3.3.6" rel="stylesheet"/>
    <link href="../static/css/font-awesome.css?v=4.4.0" rel="stylesheet"/>
    <link href="../static/css/animate.css" rel="stylesheet"/>
    <link href="../static/css/style.css?v=4.1.0" rel="stylesheet"/>
</head>
<style>
    table{
        width: 70%;
        height: 100%;
        margin: auto;
        font-size: 15px;
    }
</style>
<body>
<h1 class="text-info" style="text-align: center"> 做题完成! </h1>
<div class="list" style="text-align: center">
    <!--    <p style="font-size: 20px;color: red;">使用a标签方式将json导出csv文件</p>-->
    <div class="white-space:nowrap">本次做题数量：<p th:text="${session.sum}"></p></div>

    其中正确题目数量：<p th:text="${session.ri}"></p>
    错误题目数量：<p th:text="${session.ei}"></p>
    正确率为：<p th:text="${session.result}"></p>
    <table border="1px" cellspacing="5px" >
        <thead>
        <tr>
            <th>题目内容</th>
            <th>你的答案</th>
            <th>正确答案</th>
            <th>是否正确</th>

        </tr>
        </thead>
        <tbody th:if="${#lists.isEmpty(session.problemVo)}">

        </tbody>
        <tbody th:unless="${#lists.isEmpty(session.problemVo)}">
        <tr   th:each="problem : ${session.problemVo}">
            <td th:text="${problem.title}" class="asd"></td>
            <td th:text="${problem.answer}" class="asd"></td>
            <td th:text="${problem.rightAnswer}" class="asd"></td>
            <td th:text="${problem.panduan}" class="asd"></td>

        </tr>
        </tbody>
    </table>

</div>
</body>